//
//  PlayImgCollectionViewCell.m
//  YUXiu
//
//  Created by 王竞成 on 16/6/24.
//  Copyright © 2016年 Wang. All rights reserved.
//

#import "PlayImgCollectionViewCell.h"

@implementation PlayImgCollectionViewCell

-(id)initWithFrame:(CGRect)frame{
//    frame = Rect(0, 0, (kScreenWidth-20)/2, 120);
    self = [super initWithFrame:frame];
    courseModel *model = [[courseModel alloc]init];
    model.titleStr = @"女主播昵称";
    model.courseStr = @"直播";
    model.fanStr = @"0.1万人";
    if (self) {
        _playView = [[OL_View alloc]initWithFrame:krect(0, 0, self.golf_width, 100) model:model
                     ];
        
        [self.contentView addSubview:_playView];
        _img = [[UIImageView alloc]initWithFrame:krect(2, _playView.golf_bottom, 20, 20)];
        [_img setImage:[UIImage imageNamed:@"channel_metro_item_play_mv_btn"]];
        [self.contentView addSubview:_img];
        
        _ncLabel = [[UILabel alloc]initWithFrame:krect(22, _playView.golf_bottom, self.width-25, 20)];
        [self.contentView addSubview:_ncLabel];
        
    }
    
    return self;
}
-(void)layoutSubviews{
    
    _ncLabel.text = @"最美教练直播授课";

}
@end
